// 基于template/src/config/app-counter-config.ts.hbs生成
import { IParam } from "@/core";

function getAppCounterConfig():IParam {
    return {
    {{#each app.allPSAppCounters as |appCounter|}}
        '{{appCounter.codeName}}':{
            'name': '{{appCounter.name}}',
            'codeName': '{{appCounter.codeName}}',
            'timer': '{{appCounter.timer}}',
            'getAction': {{#if appCounter.getPSAppDEAction}}'{{appCounter.getPSAppDEAction.codeName}}'{{else}}''{{/if}},
            'appDeCodeName': {{#if appCounter.psAppDataEntity}}'{{appCounter.psAppDataEntity.codeName}}'{{else}}''{{/if}}, 
        }{{#unless @last}},{{/unless}}
    {{/each}}
    }
}
export const AppCounterConfig = getAppCounterConfig();